package chapter13;

/**
 * @author : DuJiabao
 * @Date : 2021/2/21 8:29
 * @Project : thinking-in-java
 * @File : null.java
 * @Desc :
 */
public class RegionMatcherTest {
  public static void main(String[] args) {
    String a = "abcdefghijklmn";
    // 字符串的开始索引，另一个字符串，另一个字符串的开始索引，子字符串的长度
    System.out.println(a.regionMatches(2, "cdefghijklmn", 0, 12));
    System.out.println(a.regionMatches(true,2, "CDEFghijklmn", 0, 12));
  }
}
